# -*- coding: utf-8 -*-
"""
Created on Fri May 17 14:41:57 2024

@author: 48848
"""
x = input('请输入一个三位数')
a = x[0]
b = x[1]
c = x[2]
x = int(x)
a = int(a)
b = int(b)
c = int(c)
if x == a**3 + b**3 + c**3:
    print(x,'是一个水仙花数')
else:
    print(x,'不是一个水仙花数')
